package com.xbongbong.saas.domain.entity;

import com.xbongbong.paas.toolbox.util.DateUtil;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author yuqian
 * @version v1.0
 * @date 2020/2/24 14:04
 * @since v1.0
 */
@Getter
@Setter
public class PurchaseInvoiceRelationshipEntity implements Serializable {
    private static final long serialVersionUID = -1261417425170803828L;
    // id
    private Long id;
    // 公司id
    private String corpid;
    // 客户id
    private Long supplierId;
    // 客户名
    private String supplierName;
    // 发票id
    private Long purchaseInvoiceId;
    // 合同id
    private Long purchaseId;
    // 合同名
    private String purchaseName;
    // 合同编号
    private String purchaseNo;
    // 回款id
    private Long payPlanId;
    // 回款编号
    private String payPlanNo;
    //回款单id
    private Long paySheetId;
    //回款单编号
    private String paySheetNo;
    // 金额
    private Double money;
    // 删除(1:删除)
    private Integer del;
    // 类型(0,非合并;1,采购合同合并开票;2,付款计划合并开票3.付款单合并开票;)
    private Integer type;
    // 审批字段
    private Integer flowStatus;
    // 是否作废
    private Integer isCancel;
    // 添加时间
    private Long addTime;
    // 修改时间
    private Long updateTime;

    public PurchaseInvoiceRelationshipEntity() {
        this.corpid = "";
        this.supplierId = 0L;
        this.supplierName = "";
        this.purchaseInvoiceId = 0L;
        this.purchaseId = 0L;
        this.purchaseName = "";
        this.purchaseNo = "";
        this.payPlanId = 0L;
        this.payPlanNo = "";
        this.paySheetId = 0L;
        this.paySheetNo = "";
        this.money = 0D;
        this.del = 0;
        this.type = 0;
        this.isCancel = 0;
        this.updateTime = (long) DateUtil.getInt();
    }
}
